package com.ly.mpayment.persist.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;


/**
 * ErrorCode entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="errorcode"

)

public class ErrorCode  implements java.io.Serializable {


    // Fields

     private String errorcode;
     private User userByUseruuid;
     private String resultcode;
     private String errorname;
     private String status;
     private Date createtime;
     private String remark;


    // Constructors

    /** default constructor */
    public ErrorCode() {
    }


    /** full constructor */
    public ErrorCode( User userByUseruuid, String resultcode, String errorname, String status, Date createtime, String remark) {
        this.userByUseruuid = userByUseruuid;
        this.resultcode = resultcode;
        this.errorname = errorname;
        this.status = status;
        this.createtime = createtime;
        this.remark = remark;
    }


    // Property accessors
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name="errorcode", unique=true, nullable=false, length=36)

    public String getErrorcode() {
        return this.errorcode;
    }

    public void setErrorcode(String errorcode) {
        this.errorcode = errorcode;
    }

	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="useruuid")

    public User getUserByUseruuid() {
        return this.userByUseruuid;
    }

    public void setUserByUseruuid(User userByUseruuid) {
        this.userByUseruuid = userByUseruuid;
    }

    @Column(name="resultcode", length=20)

    public String getResultcode() {
        return this.resultcode;
    }

    public void setResultcode(String resultcode) {
        this.resultcode = resultcode;
    }

    @Column(name="errorname", length=40)

    public String getErrorname() {
        return this.errorname;
    }

    public void setErrorname(String errorname) {
        this.errorname = errorname;
    }

    @Column(name="status", length=40)

    public String getStatus() {
        return this.status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Column(name="createtime", length=19)

    public Date getCreatetime() {
        return this.createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Column(name="remark", length=1000)

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }









}
